<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/MDM/Customer/Project/List.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\..\..\index.html">All files</a> / <a href="index.html">src/components/MDM/Customer/Project</a> List.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/18</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/2</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/9</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/18</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div o-Container&gt;
    &lt;o-item v-bind:source="item.project" v-bind="{saved:save}"&gt;&lt;/o-item&gt;
    &lt;!--    &lt;o-list v-bind:source="list.project"--&gt;
    &lt;!--            v-bind="{modified:modify,searched:search}"/&gt;--&gt;
    &lt;!--    &lt;div class="modal fade text-center" id="ProjectModifyPanel" tabindex="-1" role="dialog"--&gt;
    &lt;!--         aria-labelledby="myModalLabel"--&gt;
    &lt;!--         aria-hidden="true"&gt;--&gt;
    &lt;!--      &lt;div class="modal-dialog"&gt;--&gt;
    &lt;!--        &lt;div class="modal-content"&gt;--&gt;
    &lt;!--          &lt;div class="modal-body text-left"&gt;--&gt;
    &lt;!--            &lt;o-item v-bind:source="item.project" v-bind="{saved:save,backed:back}"&gt;&lt;/o-item&gt;--&gt;
    &lt;!--          &lt;/div&gt;--&gt;
    &lt;!--        &lt;/div&gt;&amp;lt;!&amp;ndash; /.modal-content &amp;ndash;&amp;gt;--&gt;
    &lt;!--      &lt;/div&gt;--&gt;
    &lt;!--    &lt;/div&gt;--&gt;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
  export default {
    name: "mms_cus_project_list", /* 这个name暂时不知道用啥用，根据官方文档说的是方便排错的 */
<span class="fstat-no" title="function not covered" >    data() {</span>
<span class="cstat-no" title="statement not covered" >      return {</span>
        octopus: this.$parent.octopus,
        list: {
          project: {
            data: {
              id: 63, // 菜单表的八爪鱼ID
              cellData: null,
            }
          },
        },
        item: {
          project: {
            // 以下参数默认由组件内部创建，但是如果有需要，开发人员可在这里提前设置，组件将按照您的预期渲染。
            // cache: false,
            // control: null,
            // dataExtend: null,
            data: {
              id: 63,
              cellData:  [
                {name: "Name"},
                {name: "Address"},
                {name: "ChargeID"},
                {name: "EngineerChargeID"},
                {name: "EnvironmentChargeID",},
                {name: "SecurityChargeID"},
                {name: "ElectricitySharp"},
                {name: "ElectricityPeak"},
                {name: "ElectricityFlat"},
                {name: "ElectricityValley"},
                {name: "ElectricityUnit"},
                {name: "WaterCost"},
                {name: "WaterUnit"},
                {name: "Code"},
                {name: "Area"},
                {name: "CreateTime"},
                {name: "Introduction"},
                {name: "OrderCCUserList"},
                {name: "PhotoPath"},
              ],
            },
          },
        }
      }
    },
<span class="fstat-no" title="function not covered" >    created: function () {</span>
      // this.list.project.data.cellData = [
      //   {name: "ID", show: false, filterKey: "=", filterValue: this.octopus.passport.project},
      //   {name: "Name", width: 150, searchKey: "LIKE"},
      //   {name: "Address", width: 200, searchKey: "LIKE"},
      //   {name: "Area", width: 100},
      //   {name: "ChargeID", link: [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}]},
      //   {name: "EngineerChargeID", link: [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}]},
      //   {name: "EnvironmentChargeID", link: [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}]},
      //   {name: "SecurityChargeID", link: [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}]},
      //   {name: "Introduction", width: 300},
      //   {name: "CreateTime", width: 160},
      // ];
<span class="cstat-no" title="statement not covered" >      this.item.project.data.value = this.octopus.passport.project;</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >      this.octopus.tools.parseCell(this.item.project.data, "ChargeID").link = [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}];</span>
<span class="cstat-no" title="statement not covered" >      this.octopus.tools.parseCell(this.item.project.data, "EngineerChargeID").link = [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}];</span>
<span class="cstat-no" title="statement not covered" >      this.octopus.tools.parseCell(this.item.project.data, "EnvironmentChargeID").link = [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}];</span>
<span class="cstat-no" title="statement not covered" >      this.octopus.tools.parseCell(this.item.project.data, "SecurityChargeID").link = [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}];</span>
<span class="cstat-no" title="statement not covered" >      this.octopus.tools.parseCell(this.item.project.data, "OrderCCUserList").link = [{mapping: "CompanyID", value: this.octopus.passport.authorization.company}];</span>
&nbsp;
    },
    methods: {
<span class="fstat-no" title="function not covered" >      create: function () {</span>
<span class="cstat-no" title="statement not covered" >        this.item.project.data.value = null;</span>
<span class="cstat-no" title="statement not covered" >        this.item.project.control.load();</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        $(function () {</span></span>
<span class="cstat-no" title="statement not covered" >          $("#ProjectModifyPanel").modal('show');</span>
        });
      },
<span class="fstat-no" title="function not covered" >      search: function (cell) {</span>
&nbsp;
      },
<span class="fstat-no" title="function not covered" >      modify: function (row) {</span>
<span class="cstat-no" title="statement not covered" >        this.item.project.data.value = row.ID;</span>
<span class="cstat-no" title="statement not covered" >        this.item.project.control.load();</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        $(function () {</span></span>
<span class="cstat-no" title="statement not covered" >          $("#ProjectModifyPanel").modal('show');</span>
        });
      },
<span class="fstat-no" title="function not covered" >      save: function (data) {</span>
<span class="cstat-no" title="statement not covered" >        if (data.status.code == 200) {</span>
<span class="cstat-no" title="statement not covered" >          this.octopus.tips.success("[" + data.status.code + "] Data Save Success.");</span>
        }
      },
<span class="fstat-no" title="function not covered" >      back: function () {</span>
<span class="cstat-no" title="statement not covered" >        $("#ProjectModifyPanel").modal('hide');</span>
      }
    },
    props: ["oData"]
  }
&lt;/script&gt;
&nbsp;
&lt;style scoped&gt;
&nbsp;
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Jan 20 2020 17:54:15 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\..\..\sorter.js"></script>
</body>
</html>
